<?php 
    $titulo_encabezado_pub = ':: ULTIMOS ENV&Iacute;OS DISPONIBLES ::';
    $this->set('titulo_encabezado_pub',$titulo_encabezado_pub);
?>

<div class="eventListTable">
<table>
    <tr>
        <td><strong>No.</strong></td>
        <td><strong>Origen - Destino</strong></td>
        <td><strong>Veh&iacute;culo</strong></td>
        <td><strong>Zona</strong></td>
        <td><strong>Disponible Hasta</strong></td>
    </tr>
    <?php
    foreach ($shipmentsDetails as $value)
    {
        if ($value['zone']['Zone_Name']== NULL)
        { $zone='<td>'.'Sin Zona<br /></td>'; }
        else 
        { $zone='<td>'.utf8_decode($value['zone']['Zone_Name']).' ('.utf8_decode($value['zone']['Zone_Number']).')<br /></td>'; }
           
        echo '<tr><td>'.$value['shipments']['Shipments_Id'].'<br /></td>'
             .'<td>'.$value['citiesOrigin']['City_Origin_Name'].' , '.$value['statesOrigin']['State_O_Abbrev'].' -- '.$value['cities']['City_Destiny_Name'].' , '.$value['states']['State_D_Abbrev'].'<br /></td>'
             .'<td>'.$value['vehicles']['Vehicle_Name'].' De '.$value['vehicle_types']['Vehicle_Type_Name'].'<br /></td>'
             .$zone.'<td>'.$value['0']['New_Availability_Date'].'<br /></td></tr>';}
    ?>
</table>
    <br />
</div>


